//* test boost::system::error_code and boost::system::system_category
#include <boost/system/error_code.hpp>
#include <boost/asio.hpp>
#include <iostream>
#include <string>

int main()
{
	boost::system::error_code ec;
	std::string hostname = boost::asio::ip::host_name(ec);
	std::cout << ec.value() << std::endl;
	std::cout << ec.category().name() << std::endl;
	std::cout << ec.category().message(0) << std::endl;
	std::cout << ec.category().message(1) << std::endl;
}